package com.xique.door.bean.request.wxMessage;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author shd
 * @create 2022/4/27 14:57
 */
@Data
public class WxMessageTemplateAddRequest {

    @NotNull(message = "推送类型不能为空")
    private Integer type;

    @NotBlank(message = "模板id不能为空")
    private String templateId;

    @NotBlank(message = "状态不能为空")
    private String status;

    /** 标题 */
    @NotBlank(message = "副标题不能为空")
    private String first;

    /** 标题颜色 */
    private String firstColor;

    /** 备注 */
    @NotBlank(message = "备注不能为空")
    private String remark;

    /** 备注颜色 */
    private String remarkColor;

    private Integer jumpType;

    private String url;

    private String miniAppId;

    private String pagepath;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "开始时间不能为空")
    private Date startTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "结束时间不能为空")
    private Date endTime;
}
